<!--{template admin/header}-->

<!-- {if $id} -->
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="1">上传图片</td>
		</tr>
		<tr>
			<td width="90%" align="right" bgcolor="#FFFFFF">
				 <div class="menu_pi insertImgDiv" id="insertImgDiv">
			    	<iframe id="imageUploadifyIframe" name="imageUploadifyIframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank" style="display:none;"></iframe>
				    <div id="normalUploadDiv">
						<form id="normalUploadForm" name="normalUploadForm" method="post" action="ajax.php?m=image&a=do_upload2" enctype="multipart/form-data" target="imageUploadifyIframe">
				    		<input type="input" name="id" value="{$id}" style="display:none;" />
				    		<input type="input" name="cid" value="3" style="display:none;" />
				    		<input type="input" name="url" value="{echo urlencode('admin.php?m=review&a=modify&id='.$id);}" style="display:none;" />
				    		可上传JPG、JPEG、GIF、PNG图片格式（小于<span style="color:red;">2M</span>）；<br />
				    		<input type="file" id="normalUploadFile" name="image" />
				    		<input name="normalUploadForm" type="submit" value="上传" class="button" />&nbsp;&nbsp;&nbsp;&nbsp;
				    		<a href='admin.php?m=review&a=add&mid={$movie_id}' style='color:red'>继续添加影评</a>
				    	</form>
				    </div>
				</div>
		  	</td>
		</tr>
</table>
<!-- {/if} -->

<form method="post" action="admin.php?m=review&a={$action}">
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">{$action_name}</td>
		</tr>
		<tr>
			<td width="10%" bgcolor="#F8F8F8">影片ID:&nbsp;<span style="color:red;">*</span></td>
			<td width="90%" align="right" bgcolor="#FFFFFF">
		  		<input size="60" type="text" name="movie_id" value="{$movie_id}">
		  	</td>
		</tr>
		<!-- {if $movie_name} -->
		<tr>
			<td width="10%" bgcolor="#F8F8F8">影片名称:&nbsp;</td>
			<td width="90%" align="right" bgcolor="#FFFFFF">
		  		{$movie_name}
		  	</td>
		</tr>
		<!-- {/if} -->
		<tr>
			<td bgcolor="#F8F8F8">影评标题:&nbsp;<span style="color:red;">*</span></td>
			<td align="right" bgcolor="#FFFFFF">
		  		<input size="60" type="text" name="title" value="{$title}" maxlength="90">
		  	</td>
		</tr>
		<tr>
			<td bgcolor="#F8F8F8">影评作者:&nbsp;<span style="color:red;">*</span></td>
			<td align="right" bgcolor="#FFFFFF">
		  		<input size="50" type="text" name="author" value="{$author}" maxlength="90">
		  		<!-- {if $id} -->
		  		<!-- {loop $image_list $iid $image} -->
	 			<a href="{$image[2]}">
	 				<img width="70" height="70" src="{$image[1]}">
	 			</a>
	 			<a href="ajax.php?m=image&a=do_delete&ids={$iid}&url={echo urlencode('admin.php?m=review&a=modify&id='.$id);}">删除</a>
	 			<!-- {/loop} -->
				<!-- {/if} -->
		  	</td>
		</tr>
		<tr>
			<td bgcolor="#F8F8F8">星级:</td>
			<td align="right" bgcolor="#FFFFFF">
		  		<input size="1" type="text" name="star" value="{$star}" maxlength="1">
		  	</td>
		</tr>
		<tr>
			<td bgcolor="#F8F8F8">影评内容简介: (留空则截取部分影评内容)</td>
			<td align="right" bgcolor="#FFFFFF">
		  		<input size="60" type="text" name="content_short" value="{$short_desc}" maxlength="100">
		  	</td>
		</tr>
		<tr>
			<td bgcolor="#F8F8F8">
				影评内容:&nbsp;<span style="color:red;">*</span><br />
				如需要在影评内容中插入剧照图片，请在需要插入图片的地方添加 [img]
			</td>
			<td align="right" bgcolor="#FFFFFF">
		  		<textarea cols="100" rows="10" name="content">{$content}</textarea>
		  	</td>
		</tr>
	</table>
	<br>
	<center><input type="submit" class="button" name="addsubmit" value="提 交"></center>
</form>
